import 'package:json_annotation/json_annotation.dart';
part 'login_result.g.dart';

@JsonSerializable()
class LoginResult {
  
  LoginResult();

  String companyName;
  String password;
  String phone;
  String roleName;
  String token;
  String userName;

  int deptId;
  int isAdmin;
  int roleId;
  int status;
  int userId;
  int userType;

  //不同的类使用不同的mixin即可
  factory LoginResult.fromJson(Map<String, dynamic> json) =>
      _$LoginResultFromJson(json);
  Map<String, dynamic> toJson() => _$LoginResultToJson(this);
}
